package net.maku.system.vo;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.maku.system.entity.SysOrgEntity;

import java.io.Serializable;

/**
 * @Author: qr
 * @Date: 2025/3/16 20:35
 * @Version 1.0
 */
@Data
@Schema(description = "用户")
public class TransferOrgVO extends SysOrgVO implements Serializable, TransPojo {

    @Schema(description = "转移关系id")
    private Long transId;

    @Schema(description = "机构ID")
    @Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "name", ref = "orgName")
    private Long orgId;

    @Schema(description = "工会名称")
    private String orgName;

    @Schema(description = "机构ID")
    @Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "name", ref = "transferOrgName")
    private Long transferOrgId;

    @Schema(description = "工会名称")
    private String transferOrgName;
}
